package com.dhl.responseibilitychain.approver;

import com.dhl.responseibilitychain.PurchaseRequest;

/**
 * @title: Approver
 * @Author danghailiang
 * @Date: 2022/8/24 1:40
 * @Version 1.0
 */
public abstract class Approver {
    /**
     * 自我聚合
     */
    private Approver approver;

    /**
     * 名字
     */
    private String name;

    public Approver(String name){
        this.name = name;
    }

    public abstract void processRequest(PurchaseRequest purchaseRequest);

    public Approver getApprover() {
        return approver;
    }

    public void setApprover(Approver approver) {
        this.approver = approver;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
